package example1;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;

public class SwingDemo {
	public SwingDemo(){
		JFrame jfrm = new JFrame("Simple Swing Program");
		jfrm.setSize(300,200);
		jfrm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JLabel jlab = new JLabel("Java GUI.");
		//jfrm.getContentPane().add(jlab);
		jfrm.add(jlab);
		jfrm.setVisible(true);
	}
	public static void main(String[] args) {
		SwingUtilities.invokeLater( new Runnable(){
			@Override
			public void run() {
				new SwingDemo();
			}
			
		});
	}
	
}
